@import url('https://fonts.googleapis.com/css?family=Hind:300,400&display=swap');

/* Define variables */
:root {
  --bg: #fff;
  --text: #fff;
  --gray: #000000;
  --lightgray: #e5e5e5;
  --blue: #ff0000;
}


body {
  font-family: Arial, sans-serif;
            background-color: #140b0b;
            color: #fff;
            margin: 0;
            padding: 0;
            overflow-x: hidden;
}
* {
  box-sizing: border-box;
}

.scrolled {
    background-color: #140b0b;
}
.container {
  margin: 0 auto;
  padding: 2rem;
  width: 48rem;
}
.section {
    padding: 40px;
    background-color: #140b0b;
}

.section.dark {
    background-color: #2b2323;
    
}
@media (max-width: 800px) {
  .container {
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
  }
  .menu {
    background-color: #140b0b;
  }
}

/* Accordion styles */
.accordion .accordion-item {
  border-bottom: 1px solid var(--lightgray);
}

.accordion button {
  position: relative;
  display: block;
  text-align: left;
  width: 100%;
  padding: 1em 0;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 400;
  border: none;
  background: none;
  outline: none;
  transition: color 0.3s;
}

.accordion button:hover,
.accordion button:focus {
  cursor: pointer;
}

.accordion button:hover::after,
.accordion button:focus::after {
  cursor: pointer;
  color: var(--blue);
  border: 1px solid var(--blue);
}

.accordion .accordion-title {
  padding: 1em 1.5em 1em 0;
}

.accordion .icon {
  display: inline-block;
  position: absolute;
  top: 18px;
  right: 0;
  width: 22px;
  height: 22px;

}
.rotate {
    transform: rotate(180deg);
}
.accordion .icon::before {
  display: block;
  position: absolute;
  content: '';
  top: 9px;
  left: 5px;
  width: 10px;
  height: 2px;
  background: currentColor;
}

.accordion .icon::after {
  display: block;
  position: absolute;
  content: '';
  top: 5px;
  left: 9px;
  width: 2px;
  height: 10px;
  background: currentColor;
}

.accordion button[aria-expanded='true'] {
  color: var(--blue);
}

.accordion button[aria-expanded='true'] .icon::after {
  width: 0;
}

.accordion button[aria-expanded='true'] + .accordion-content {
  opacity: 1;
  max-height: 9em;
  transition: opacity 200ms linear, max-height 800ms linear;
  will-change: opacity, max-height;
  max-height: 800px;
}

.accordion .accordion-content {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 300ms linear, max-height 600ms linear;
  will-change: opacity, max-height;
}

.accordion .accordion-content p {
  font-size: 1rem;
  font-weight: 300;
  margin: 2em 0;
}
.hero {
    
    height: 100vh;
    position: relative;
    clip-path: none;
    filter: brightness(70%);

}

.hero h1 {
  font-size: 4em;
  margin: 0;
  line-height: 1em;
  padding: 0;
  border-bottom: 4px solid white;
  width: fit-content;
}
.hero h2 {
  margin: 0;
  padding: 0;
  font-size: 2.1em;
  color: #e71b27;
  line-height: 1em;
  font-weight: 500;
}
.hero h3 {
  margin: 10px;
  padding: 0;
}
.nadpis-container {
  position: absolute;
  left: 50px;
  top: 100px;
  top: 50%;
  left: 20%;
  transform: translate(-50%, -50%);
}
.flex {
  display: flex;
  justify-content: space-between;
  width: 70%;
  margin: 50px;
  margin-left: auto;
  margin-right: auto;
 
}
.flex .item {
  width: 45%;
}
.item img {
  width: 100%;
  border-radius: 40px 0px 40px 0px;
}
.item p{
  font-size: 1.2em;
  font-weight: 400;
}
.container-services {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 15px;
            padding: 20px;
            width: 90%;
            margin-left: auto;
            margin-right: auto;
        }
/* Prvé dva obrázky na celý riadok */
.service:nth-child(1) {
    grid-column: span 2;
}
.service:nth-child(2) {
    grid-column: span 2;
}
.service:nth-child(3) {
  grid-column: span 2;
}
.service:nth-child(4) {
  grid-column: span 2;
}
/* Každý service box */
.service {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    height: 320px;

}
.service img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.service-title {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
}

.container-galeria {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 20px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}
.overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0); /* Darkness filter */
z-index: 1;
}
.overlay:hover {

    background-color: rgba(0, 0, 0, 0.2); 

}
.service .overlay {

}
/* Prvé dva obrázky na celý riadok */

.image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    height: 320px;

}
.image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.image-title {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
}
.section-nadpis {
  font-size: 1.7em;
  text-align: center;
}
/* Custom class for the container with a gradient background */
.custom-container {
  background: linear-gradient(45deg, #f44336, #f50057); /* Red gradient */
  padding: 20px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
 
  background-size: cover;
  background-position: center;
  margin-top: 50px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

/* Custom class for the main title text */
.custom-title {
  color: white;
  font-size: 24px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* Text shadow for better readability */
}

/* Custom class for the subtitle or description text */
.custom-description {
  color: white;
  font-size: 16px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2); /* Light shadow for readability */
}

/* Custom class for the button */
.custom-button {
  background-color: #c20606; /* Darker red for button */
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.custom-button:hover {
  background-color: #c21818; /* Slightly darker red on hover */
  transform: translateY(-2px); /* Slight elevation effect */
}
@media (max-width: 1500px) {
  .service, .image {
    height: 270px;
  }
}
@media (max-width: 1250px) {
  .service, .image {
    height: 250px;
  }
}
@media (max-width: 1100px) {
  .service, .image {
    height: 270px;
  }
  .container-services,.container-galeria {
    grid-template-columns: repeat(2, 1fr);
  }
  .service:nth-child(1) {
    grid-column: span 1;
  }
    .service:nth-child(2) {
      grid-column: span 1;
  }
  .service:nth-child(3) {
    grid-column: span 1;
  }
  .service:nth-child(4) {
    grid-column: span 1;
  }
  .flex {
    width: 90%;
    flex-direction: column;
    
  }
  .flex .item{
    margin-left: auto;
    margin-right: auto;
  }
  .flex1 .item:first-child {
    order: 2;
  }
  .flex1 .item:last-child {
    order: 1;
  } 
  .flex .item {
    width: 90%;
  }

}
@media (max-width: 1000px) {
  .nadpis-container {
  left: 50%;
}
}
 @media (max-width: 900px) {
  .hero {
    background-position-x: right;
    height: 80vh;
  }
  .hero h1 {
  font-size: 3em;
}
  .hero h2 {
    font-size: 1.7em;

}
}
@media (max-width: 750px) {
  .service, .image {
    height: 250px;
    grid-column: span 2;
  }
  .service:nth-child(1) {
      grid-column: span 2;
  }
  .service:nth-child(2) {
      grid-column: span 2;
  }
  .service:nth-child(3) {
    grid-column: span 2;
  }
  .service:nth-child(4) {
    grid-column: span 2;
  }
  .container-services,.container-galeria {
    grid-template-columns: repeat(1, 1fr);
    width: 90%;
    gap: 20px;
  }
  .section {
    padding: 20px;
  }
  .custom-container {
    display: block;
  }
}
/* @media (max-width: 650px) {
  .hero {
    height: 50vh;
  }
} */